home *** CD-ROM | disk | FTP | other *** search
- #include <jaz.h>
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │jzscron.c │
- │Turn the display screen on after a previous call to jzscroff(). │
- │ │
- │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
- └────────────────────────────────────────────────────────────────────────────┘
- */
- jzscron()
- {
- #define CPORT 0x3D8 /* address of mode select register */
- #define MPORT 0x3B8 /* address of CRT control port */
-
- unsigned int PORTADDR; /* hold address of port */
- unsigned int wport; /* hold original contents */
-
- if (MEMB(0x40,0x49) == 7) /* mono card */
- PORTADDR = MPORT;
- else
- PORTADDR = CPORT;
-
- wport = inp(PORTADDR); /* get original contents */
-
- outp(PORTADDR,wport | 8); /* enable the display bit */
- }
-